Add DOMCTL to limit the number of event channels a domain may use
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 14 Oct 2013 08:23:10 +0000 (10:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 Oct 2013 08:23:10 +0000 (10:23 +0200)
commit8ec7763c807f252e930c9647a0631253db2844a7
treee8704c43d653a4bfdab5e7b71a46930f2927d36c
parent88910061ec615b2d05e721a82c37139e05df0712
Add DOMCTL to limit the number of event channels a domain may use

Add XEN_DOMCTL_set_max_evtchn which may be used during domain creation to
set the maximum event channel port a domain may use.  This may be used to
limit the amount of Xen resources (global mapping space and xenheap) that
a domain may use for event channels.

A domain that does not have a limit set may use all the event channels
supported by the event channel ABI in use.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Keir Fraser <keir@xen.org>
tools/flask/policy/policy/modules/xen/xen.if
tools/flask/policy/policy/modules/xen/xen.te
xen/common/domctl.c
xen/common/event_channel.c
xen/include/public/domctl.h
xen/include/xen/sched.h
xen/xsm/flask/hooks.c
xen/xsm/flask/policy/access_vectors